package com.xqboss.apps.vo.nft;


import com.xqboss.apps.domain.equipment.EquipmentLevelPrice;
import com.xqboss.apps.enums.nft.ResellEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author Administrator
 */
@ApiModel("转卖配置Vo")
@Getter
@Setter
public class SubsellConfigVo {

    @ApiModelProperty("nft主键")
    private Long id;

    @ApiModelProperty("转卖开关（0关闭，1开启）")
    @NotNull(message = "转卖开关不能为空")
    private ResellEnum isResell;

    @ApiModelProperty("冷却时间(分钟)")
    @Min(value = 0, message = "冷却时间最小值为0")
    private Integer coolingTime;

    @ApiModelProperty("装备-转卖价格列表")
    private List<EquipmentLevelPrice> resellPrice;

    @ApiModelProperty(value = "最低价")
    @DecimalMin(value = "0", message = "最低价最小值为0")
    private BigDecimal lowestPrice;

    @ApiModelProperty(value = "最高价")
    @DecimalMin(value = "0", message = "最高价最小值为0")
    private BigDecimal maxPrice;

    @ApiModelProperty("是否显示虚拟价格")
    @NotNull(message = "是否显示外显价格不能为空")
    private Boolean isVirtual;

    @ApiModelProperty("虚拟最高价")
    private BigDecimal displayMaxPrice;
}
